package com.nian.common.lock.zookeeper;

import com.nian.common.model.ServerResponse;

/**
 * 用途：
 * 开发：zhangmj
 * 日期：2020/4/13 0013 19:56
 */
public interface IZookeeperLock {

    ServerResponse lock(IZookeeperLockWorker worker);

    ServerResponse lock(IZookeeperLockWorker worker, int second);

    ServerResponse lock(String lockName, IZookeeperLockWorker worker, int second);

}
